#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QVector>
#include "ui_mainwindow.h"
#include "info.h"

class MainWindow : public QMainWindow
{
   Q_OBJECT

   Ui::MainWindow ui;
   QVector<Info> vecInfa;

   void writeToList(Info *infItem);
   void readFile();

public:
    MainWindow();

public slots:
    void add();
    void exit();
    void showData(QListWidgetItem *);
    void save();

};

#endif // MAINWINDOW_H
